package com.zmc.coupon.infrastructure.dao;

import com.zmc.coupon.infrastructure.entity.CouponEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 优惠券信息
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 14:59:36
 */
@Mapper
public interface CouponDao extends BaseMapper<CouponEntity> {

    boolean receiveCoupon(@Param("couponId")Long couponId);

    void updateUseCount(@Param("map") Map<Long, Long> map);
}
